import request from '@/utils/request';

export async function reqTyPermissionList(data: any, options?: any): Promise<any> {
	return request('/api/sys/permission/list', {
		method: 'POST',
		data,
		...(options || {}),
	});
}

export async function reqAddTyPermission(data: any, options?: any): Promise<any> {
	return request('/api/sys/permission/create', {
		method: 'POST',
		data,
		...(options || {}),
	});
}

export async function reqUpdateTyPermission(data: any, options?: any): Promise<any> {
	return request('/api/sys/permission/update', {
		method: 'POST',
		data,
		...(options || {}),
	});
}

export async function reqDeleteTyPermission(data: any, options?: any): Promise<any> {
	return request('/api/sys/permission/delete', {
		method: 'POST',
		data,
		...(options || {}),
	});
}


